Tidy Functions
PHP Manual

tidy_set_encoding

(PECL tidy >= 0.5.2)

tidy_set_encodingSet the input/output character encoding for parsing markup

Descripción

bool tidy_set_encoding ( string $encoding )

Sets the encoding for input/output documents.

Lista de parámetros

encoding

The encoding parameter sets the encoding for input/output documents. The possible values for encoding are: ascii, latin0, latin1, raw, utf8, iso2022, mac, win1252, ibm858, utf16, utf16le, utf16be, big5, and shiftjis.

Valores retornados

Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.

Notes

Note: Esta funcion esta disponible solamente con Tidy 1.0. Se dejo de utilizar en Tidy 2.0 y por lo tanto no se encuentra dispobible actualmente.


Tidy Functions
PHP Manual